package com.forum.mapper;

import com.forum.pojo.LikeRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.forum.pojo.LikeRecord
 */
@Mapper
public interface LikeRecordMapper extends BaseMapper<LikeRecord> {
    Integer deleteByObjectIdAndUserIdAndOpType(@Param("objectId") String objectId, @Param("userId")Long userId, @Param("opType") Integer opType);

    LikeRecord selectByObjectIdAndUserIdAndOpType(@Param("objectId")String objectId, @Param("userId")Long userId, @Param("opType")Integer opType);
}




